import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Hero } from '../heros/Hrtest.module';
/**
 * Generated class for the SearchDetailPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-search-detail',
  templateUrl: 'search-detail.html',
})
export class SearchDetailPage {
  public id: number;
  // id:number;
  hero: Hero;
  constructor(public navCtrl: NavController, public navParams: NavParams) {
    this.id = navParams.get('id');
    this.hero = navParams.get('hero');
    console.log('nav param id', this.id);
    console.log('hero obj', this.hero);
  }



  ionViewDidLoad() {
    console.log('ionViewDidLoad SearchDetailPage');
  }

}
